import React from 'react'
import store from './store';
function List2() {
  const { list } = store.getState()
  return (
    <div>
      <h1>list2</h1>
      { list }
      <button onClick = { () => {
          store.dispatch({
            type: 'CHANGE_LIST',
            payload: [7,8,9]
          })
        }}>789</button>
    </div>
  )
}

export default List2
